<%--
  Created by IntelliJ IDEA.
  User: Pengpeng
  Date: 2017/5/27
  Time: 16:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>A paper on cloud</title>
    <link rel="stylesheet" href="resources/css/app.css"/>
    <link rel="stylesheet" href="resources/bootstrap/css/bootstrap.min.css"/>
    <script type="text/javascript" src="resources/js/jquery-1.10.2.min.js"></script>
</head>
<body>
<div class="container">
    <div class="password-area">
        <form class="form-inline" id="pwdform" method="post">
            <div class="form-group">
                <label>Password</label>
                <input type="password" name="p" class="form-control" required/>
            </div>
            <button type="submit" class="btn btn-primary" id="sub">Submit</button>
        </form>
    </div>

    <script type="text/javascript">
        $("#sub").click(function () {
            var url = window.location.href;
            $("#pwdform").attr("action", url);
            $("#pwdform").submit();
        })
    </script>
</div>
</body>
</html>
